package com.migu.contacts.util;

import com.frank.libandroid.BaseActivity;
import com.frank.libandroid.CenterPopup;
import com.frank.libandroid.butterknife.OnClick;
import com.lxj.xpopup.XPopup;
import com.migu.contacts.R;
import com.migu.contacts.databinding.PopShowVipBinding;
import com.migu.contacts.main.my.VIPActivity;

public class DialogUtil {
    public static void showVIPDialog(BaseActivity mActivity) {
        CenterPopup bottomPopup = new CenterPopup<PopShowVipBinding>(mActivity) {
            @OnClick(R.id.close)
            public void quit() {
                dismiss();
            }

            @OnClick(R.id.confirm)
            public void confirm() {
                dismiss();
                mActivity.start(VIPActivity.class);
            }

        };
        new XPopup.Builder(mActivity).asCustom(bottomPopup).show();
    }
}
